package com.paipai.feign;

import com.paipai.dto.Auction;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.math.BigDecimal;

@FeignClient("lin-service-order")
public interface AuctionFeign {
    @RequestMapping("/auction/addAuction")
    @ResponseBody
    public String addAuction( @RequestBody Auction auction);

    @RequestMapping("/auction/getCurrentPrice")
    @ResponseBody
    public BigDecimal getCurrentPrice(@RequestParam("roundId") long roundId,@RequestParam("startPrice")BigDecimal startPrice);
}
